package com.qhg.saas_server.mapper;

import com.qhg.saas_server.pojo.Road;
import com.qhg.saas_server.pojo.Store;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface RoadMapper {

    //条件查询
    List<Road> list(HashMap<String, Object> hashMap);


    Road getRoadById(@Param("roadId")  Integer roadId);

    List<Store> getRoadStoreListByRoadId(@Param("roadId") Integer roadId);

    void insert(Road road);

    void delete(@Param("roadId") Integer roadId);

    void update(Road road);
}
